package com.anolesoft.yr.mbus.contm.entity;


import com.anolesoft.yr.mbus.contm.util.StringUtil;

public class Lvl {
    public Lvl(String start , String lvlText, String ilvl ){
        this.start = Integer.parseInt(start);
        this.lvlText = lvlText;
        this.ilvl = ilvl;
    }
    private int start;
    private String pStyle;
    private String lvlText;
    private String ilvl;

    public int getStart() {
        return start;
    }

    public void setStart(int start) {
        this.start = start;
    }

    public String getpStyle() {
        return pStyle;
    }

    public void setpStyle(String pStyle) {
        this.pStyle = pStyle;
    }

    public String getLvlText() {
        return lvlText;
    }

    public void setLvlText(String lvlText) {
        this.lvlText = lvlText;
    }

    public String getIlvl() {
        return ilvl;
    }

    public void setIlvl(String ilvl) {
        this.ilvl = ilvl;
    }

    public int getLvlLevel() {
        return StringUtil.charsCount(lvlText,"%");
    }
}
